<?php
declare (strict_types = 1);

namespace app\model;

use think\Model;
use think\model\concern\SoftDelete;

/**
 * @property int $bank_id 银行
 * @property int $deletetime
 * @property int $id
 * @property int $user_id 用户
 * @property string $account 账号
 * @property string $bank 银行名称
 * @property string $bank_name 开户行名称
 * @property string $createtime
 * @property string $idcard 身份证号
 * @property string $mobile 手机号
 * @property string $name 姓名
 * @method static \think\db\Query onlyTrashed()
 * @method static \think\db\Query withTrashed()
 * @mixin \think\Model
 */
class UserBank extends Model
{
	use SoftDelete;
	//
	protected $createTime = 'createtime';
	protected $deleteTime = 'deletetime';
	
	function class()
	{
	   return $this->belongsTo(Category::class,'bank_id');
	}
}
